# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
pkgname=font-monaspace
pkgver=1.101
pkgrel=0
pkgdesc="Innovative superfamily of fonts for code"
url="https://monaspace.githubnext.com/"
arch="noarch"
license="OFL-1.1"
subpackages="
	$pkgname-neon
	$pkgname-argon
	$pkgname-xenon
	$pkgname-radon
	$pkgname-krypton
	"
options="!check"	# no test suite
source="https://github.com/githubnext/monaspace/releases/download/v$pkgver/monaspace-v$pkgver.zip"
builddir="$srcdir/monaspace-v$pkgver/fonts/otf/"

package() {
	depends="
		$pkgname-neon=$pkgver-r$pkgrel
		$pkgname-argon=$pkgver-r$pkgrel
		$pkgname-xenon=$pkgver-r$pkgrel
		$pkgname-radon=$pkgver-r$pkgrel
		$pkgname-krypton=$pkgver-r$pkgrel
	"
	install -Dm644 ./*.otf -t "$pkgdir"/usr/share/fonts/monaspace
}

neon() {
	pkgdesc="$pkgdesc (neo-grotesque sans family)"
	amove 'usr/share/fonts/monaspace/MonaspaceNeon*'
}

argon() {
	pkgdesc="$pkgdesc (humanist sans family)"
	amove 'usr/share/fonts/monaspace/MonaspaceArgon*'
}

xenon() {
	pkgdesc="$pkgdesc (slab serif family)"
	amove 'usr/share/fonts/monaspace/MonaspaceXenon*'
}

radon() {
	pkgdesc="$pkgdesc (handwriting family)"
	amove 'usr/share/fonts/monaspace/MonaspaceRadon*'
}

krypton() {
	pkgdesc="$pkgdesc (mechanical sans family)"
	amove 'usr/share/fonts/monaspace/MonaspaceKrypton*'
}

sha512sums="
5522ffdc4943082e1440b82fd48836d0c57ba4b7b9b1f0f7316b61f261f4c558a7c1cda1acc0874491e0d5ff41f6b2feac43be7a28516348766ffded17842063  monaspace-v1.101.zip
"
